<?php echo $this->Form->create('Maquinarias', array('action' => 'maquinarias')); ?>
<div class="widget">
    <div class="whead"><h6>LISTADO DE MAQUINARIAS</h6><div class="clear"></div></div>
    <div class="shownpars">
        <table cellpadding="0" cellspacing="0" border="0" class="dTable">
            <thead>
                <tr>
              <th>CODIGO DE MAQUINARIA</th>
              <th>NOMBRE</th>
              <th>DETALLE</th>
              <th>ACTIVO</th>
              <th>ACCIONES</th>
            </tr>
            </thead>
            <tbody>
                <?php $i=0;foreach ($data as $maquinaria): ?>


        <tr <?php echo fmod($i, 2) ? "" : "class='bg'" ?>>
              <td><?php echo $maquinaria['Maquinaria']['numero_maquina']?></td>
              <td><?php echo $maquinaria['Maquinaria']['nombre']?></td>
              <td><?php echo $maquinaria['Maquinaria']['descripcion']?></td>
              <td><?php if ($maquinaria['Maquinaria']['estado']==1): echo 'ACTIVO';else:echo 'INACTIVO';endif; ?></td>
              <td style="font-size:10px;">
              <?php echo $this->Html->link($this->Html->image("iconos/edit.png", array("alt" =>'Editar', 'title' => 'Editar')), array('action' => 'editar', $maquinaria['Maquinaria']['id']),array('escape' => false)); ?>
              <?php echo $this->Html->link($this->Html->image("iconos/elim.png", array("alt" =>'Eliminar', 'title' => 'Eliminar')), array('action' => 'eliminar', $maquinaria['Maquinaria']['id']),array('escape' => false), 
                        ("Desea eliminar realmente??")); ?>
                        
              
              <?php //echo $this->Html->link('MODIFICAR', array('action'=>'editar', $maquinaria['Maquinaria']['id']),array('class'=>'inner_a')); ?> 
              <?php //echo $this->Html->link('ELIMINAR',array('action'=>'eliminar',$maquinaria['Maquinaria']['id']),array('class' => 'inner_a'),('Desea realmente eliminar?')); ?>
              
              </td>
            </tr>
            <?php $i++; endforeach; ?>          
            </tbody>
        </table>
    </div> 
</div> 


  